<template>
    <web-view v-if="url" :src="url" class="webview" @load="onLoad" ref="webview" allowfullscreen>
    </web-view>
</template>

<script>
import popup from '@/components/uni-popup/uni-popup.vue';
import sharebtn from '@/components/share-btn/share-btn.vue';
export default {
    data() {
        return {
            url: "https://survy.yingdedao.cn/"
        }
    },
    props: {
    },
    components: {
        popup, sharebtn
    },
    computed: {
    },
    onLoad(res) {
        console.log(res.id)

        this.url = this.url + '?id=' + res.id
    },
    methods: {
    }
};
</script>
<style>
.webview {
    width: 100%;
    height: 100vh;
}
</style>